package demon1;
class Base{
    public int a;
    public int b;

}
/*
class B extends Cal{
    public void func()
    {
        System.out.println(super.a);
    }
*/

//}
//都是子类对象
class Derived extends Base{
    public int c;
    public int a=99;
    public void method(){

        System.out.println("a: "+a);


    }
}
public class Test2 {
public static void main(String[] args)
{
    Derived derived =new Derived();
    /*B b=new B();
    b.func();*/


}
}
